{include file="header.html"}
<div class="row">
<div class="span12">
{include file='shop/nav.html'}
<div class="search-form">
<form method="get" action="{$appadmin}" class="form">
<input type="hidden" name="m" value="shop" />

店铺名称：<input type="text" name="shopname" value="{$smarty.get.shopname}" />
分类：    <select name="catid" class="w100">
    <option value="0">请选择</option>
    {foreach item=c from=$cat_list}
                <option value="{$c.catid}" {if get('catid') eq $c.catid} selected="selected"{/if}>{$c.cname}</option>
                {foreach item=c_2 from=$c.child}
                	<option value="{$c_2.catid}" {if get('catid') eq $c_2.catid} selected="selected"{/if} class="o_c_2">|__{$c_2.cname}</option>
                    {foreach item=c_3 from=$c_2.child}
                    <option value="{$c_3.catid}" {if get('catid') eq $c_3.catid} selected="selected"{/if} class="o_c_3"> |____{$c_3.cname}</option>
                    {/foreach}
                {/foreach}
                {/foreach}
    </select>
    <select name="status">
    	<option value="0">状态</option>
        <option value="1"  {if 1 eq get('status')} selected{/if}>未审核</option>
        <option value="2"  {if 2 eq get('status')} selected{/if}>已通过</option>
        <option value="3" {if 3 eq get('status')} selected{/if}>已禁止</option>
    </select>
<input type="submit" value="搜索" class="btn" />
</form>
</div>
<p class="pd-5">总共{$rscount}家店铺</p>
 <table class='table table-bordered' width='100%'>
  <tr>
   <td width="74">shopid</td>
   <td width="95">店铺名称</td>
   <td width="100">分类</td>
    <td width="97">logo</td>
   
    
   
   <td width="103">推荐</td>
   <td width="57">最新</td>
    <td width="51">最热</td>
   <td width="136">添加时间</td>
   
    
   <td width="60">状态</td>
<td   align="center">操作</td>
  </tr>
 {foreach item=c from=$data}
<tr>
   <td>{$c.shopid}</td>
   <td><a href="/index.php?m=shop&shopid={$c.shopid}" target="_blank">{$c.shopname}</a></td> 
    <td align="center"><a href="{R("/index.php?m=shoplist&catid=$c.catid")}" target="_blank">{$c.cname}{if $c.cname_2nd}>{$c.cname_2nd}{/if}{if $c.cname_3nd}>{$c.cname_3nd}{/if}</a></td>
 <td><a href="{$c.shopurl}" target="_blank"><img src="{$c.logo|IMAGES_SITE}" width="50" /></a></td>
   
    
 
  
   <td>{if $c.isrecommend neq 1}
           <img src="/static/images/no.gif"  class="ajax_yes" url="{$appadmin}?m=shop&a=recommend&shopid={$c.shopid}&isrecommend=1" rurl="{$appadmin}?m=shop&a=recommend&shopid={$c.shopid}&isrecommend=0" /> 
          {else}
           <img src="/static/images/yes.gif" class="ajax_no"  rurl="{$appadmin}?m=shop&a=recommend&shopid={$c.shopid}&isrecommend=1" url="{$appadmin}?m=shop&a=recommend&shopid={$c.shopid}&isrecommend=0" /> 
          {/if}</td>
   <td>{if $c.isnew eq 1}
   <img src='{$skins}images/yes.gif' class="ajax_no" url='{$appadmin}?m=shop&a=new&shopid={$c.shopid}&isnew=0' rurl='{$appadmin}?m=shop&a=new&shopid={$c.shopid}&isnew=1'>
    {else}
    <img src='{$skins}images/no.gif' class="ajax_yes" url='{$appadmin}?m=shop&a=new&shopid={$c.shopid}&isnew=1' rurl='{$appadmin}?m=shop&a=new&shopid={$c.shopid}&isnew=0'>
    {/if}</td>
    
    <td>{if $c.ishot eq 1}
   <img src='{$skins}images/yes.gif' class="ajax_no" url='{$appadmin}?m=shop&a=hot&shopid={$c.shopid}&ishot=0' rurl='{$appadmin}?m=shop&a=hot&shopid={$c.shopid}&ishot=1'>
    {else}
    <img src='{$skins}images/no.gif' class="ajax_yes" url='{$appadmin}?m=shop&a=hot&shopid={$c.shopid}&ishot=1' rurl='{$appadmin}?m=shop&a=hot&shopid={$c.shopid}&ishot=0'>
    {/if}</td>       
          
   <td>{$c.dateline|date:Y-m-d}</td>
   
    
    <td>	{if $c.status neq 2}
           <img src="/static/images/no.gif"  class="ajax_yes" url="{$appadmin}?m=shop&a=status&shopid={$c.shopid}&status=2" rurl="{$appadmin}?m=shop&a=status&shopid={$c.shopid}&status=4" /> 
          {else}
           <img src="/static/images/yes.gif" class="ajax_no"  rurl="{$appadmin}?m=shop&a=status&shopid={$c.shopid}&status=2" url="{$appadmin}?m=shop&a=status&shopid={$c.shopid}&status=4" /> 
          {/if}</td>
   
<td align="center"><a href="{$appadmin}?m=shop&a=add&shopid={$c.shopid}">编辑</a>  
<a href="{$appshop}?m=login&a=admin&shopid={$c.shopid}" target="_blank">去管理</a><br /> 
<a href="{$appadmin}?m=shopadmin&shopid={$c.shopid}">管理员管理</a>
<a href="javascript:;" class="delete" url="{$appadmin}?m=shop&a=delete&shopid={$c.shopid}">删除</a></td>
  </tr>
   {/foreach}
 </table>
<div>{$pagelist}</div>
</div>
</div>
{include file="footer.html"}